//
//  ZQDeviceModel.h
//  ZQSmartLife
//
//  Created by huanghuan on 15/6/10.
//  Copyright (c) 2015年 huanghuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZQModel.h"

@interface ZQDeviceModel : ZQModel
#ifndef DEVICE_COLUMN__
#define DEVICE_COLUMN__
#define     DEVICE_ID           @"id"
#define     DEVICE_NAME         @"name"
#define     DEVICE_DEVICETYPE   @"deviceType"
#define     DEVICE_RCTYPE       @"rcType"
#define     DEVICE_ADDR         @"addr"
#define     DEVICE_ICON         @"icon"
#define     DEVICE_ROOMID         @"roomId"
#define     DEVICE_SYSTEMID     @"systemId"
#define     DEVICE_VISIBLE      @"visible"
#define     DEVICE_VERSION       @"ver"
#define     DEVICE_ORDERS       @"orders"

#endif
@property(nonatomic, strong) NSString *name; //设备名称，不可重复
@property(nonatomic, assign) int deviceType; //设备类型 见ZQDeviceType
@property(nonatomic, assign) int ver; //设备版本号见ZQDeviceType
@property(nonatomic, strong) NSString *rcType; //标识是哪一类设备，比如IR 为红外，SECURITY为安防设备
@property(nonatomic, strong) NSString *addr; //设备的mac地址，唯一
@property(nonatomic, strong) NSString *icon; //设备图标 为空，未使用
@property(nonatomic, assign) int roomId; //设备所在的房间名
@property(nonatomic, strong) NSString *systemId; //暂时无效
@property(nonatomic, assign) int visible; //设备是否可见，现在全为可见 1
@property(nonatomic, assign) int order; //设备排序序号

-(id) initWithDic:(NSDictionary *)dic;
-(NSDictionary *)dictionary;
@end
